package org.nutz.quickstart.auth.bean;

import java.io.Serializable;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;
import org.nutz.dao.tools.annotation.ColType;
import org.nutz.dao.tools.annotation.NotNull;

@Table("t_auth_usrt")
public class User implements Serializable {
	
	private static final long serialVersionUID = 6071760527961808124L;
	
	@Id
	@ColType("BIGINT")
	private long id;
	@Name
	@NotNull
	@ColType("VARCHAR(128)")
	private String username;
	@Column
	@ColType("VARCHAR(128)")
	@NotNull
	private String password;
	@Column
	@ColType("VARCHAR(1024)")
	private String note;
	@Column
	private long version;
	
	//Getter/setter
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	public long getVersion() {
		return version;
	}
	public void setVersion(long version) {
		this.version = version;
	}
	
}
